import { Module } from "@nestjs/common";
import { CategoryController } from "./category.controller";
import { CategoryService } from "./category.service";
import { CategorySchema } from "./schemas/category.schema";
import { ArticleSchema } from "./schemas/article.schema";
import { AuthorSchema } from "./schemas/author.schema";
import { MongooseModule } from "@nestjs/mongoose";
@Module({
  imports: [
    MongooseModule.forFeature([
      { name: "Category", schema: CategorySchema },
      { name: "Article", schema: ArticleSchema },
      { name: "Author", schema: AuthorSchema },
    ]),
  ],
  controllers: [CategoryController],
  providers: [CategoryService],
})
export class CategoryModule {}
